import request from '@/utils/request'

//查询地推人员
export function getSaleUser(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/getSaleUser',
        method: 'get',
        params: data
    })
}

//查询地推人员(新的  只在会员管理页面)
export function getSaleUserByName(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/getSaleUserByName',
        method: 'get',
        params: data
    })
}

//修改地推人员信息
export function updateSaleUser(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/updateSaleUser',
        method: 'post',
        data: data
    })
}

//新增地推人员
export function addSaleUser(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/addSaleUser',
        method: 'post',
        data: data
    })
}

//查询员工列表
export function getSaleList(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/getSaleList',
        method: 'post',
        data: data
    })
}

//新增员工
export function addSaleMainInfo(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/addSaleMainInfo',
        method: 'post',
        data: data
    })
}

//新增员工推广类型
export function addSaleSubInfo(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/addSaleSubInfo',
        method: 'post',
        data: data
    })
}

//编辑员工
export function updateSaleMainInfo(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/updateSaleMainInfo',
        method: 'post',
        data: data
    })
}

//编辑推广类型
export function updateSaleSubInfo(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/updateSaleSubInfo',
        method: 'post',
        data: data
    })
}

//删除推广类型
export function deletedSaleSubInfo(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/deletedSaleSubInfo',
        method: 'post',
        data: data
    })
}

// 查询在职员工
export function searchSaleRealName(data) {
    return request({
        url: 'api/jjrjs/userMemberManagementController/searchSaleRealName',
        method: 'get',
        params: data
    })
}
